@import "_variables",
'mixins';

*{
  padding: 0;
  margin: 0;
}
page {
  color: $color-normal;
  font-size: $font-size-medium;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
  background: $color-background;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page-container{
  width: 100%;
  min-height: 100%;
  padding-bottom: calc( constant(safe-area-inset-bottom));
  padding-bottom: calc( env(safe-area-inset-bottom));
}
.tab-container{
  padding-bottom: 100rpx;
  padding-bottom: calc(100rpx + constant(safe-area-inset-bottom));
  padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

// ---------------- reset part ----------------

/* #ifdef H5 */
page {
  overflow-y: inherit;
}
uni-toast .uni-toast {
  font-size: 30rpx;
  width: auto !important;
  min-width: 196rpx;
}
uni-tabbar, uni-tabbar .uni-tabbar{
  display: none;
}
/* #endif */

// -------------- components part ----------------
.flex-container {
  @include flex-container;
}

.sticky-wrap {
  top: 0;
  position: sticky;
  z-index: 9;
}

.between-wrap {
  @include flex;
  @include j-between;
}

.relative-container {
  position: relative;
}


/* 商品列表 */
.goods-list-wrapper {
  padding: 0 30rpx;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-top: 10rpx;
  justify-content: space-between;
}
.click-active{
  &:active{
    opacity: 0.6;
  }
}
.border-bottom-1px{
  border-bottom: 2rpx solid $color-border;
}
.text-ellipsis-two{
  @include text-ellipsis-line(2);
}
.text-ellipsis-one{
  @include text-ellipsis-line(1);
}

.totalPriceRed{
  color: #F10D3B !important;
}
.share-icon{
  @include transition;
  right: 30rpx;
  bottom: 300rpx;
  bottom: calc(300rpx + constant(safe-area-inset-bottom));
  bottom: calc(300rpx + env(safe-area-inset-bottom));
  opacity: 0;
  position: fixed;
  z-index: 99;
  image{
    width: 86rpx;
    height: 86rpx;
  }

  &.active{
    opacity: 1;
  }
}

.maskContainer{
  box-sizing: border-box;
  padding: 20rpx 20rpx 10rpx 20rpx;
  border-top-left-radius: 20rpx;
  border-top-right-radius: 20rpx;
  min-height: 100px;
  width: 100%;
  background-color: #fff;
  .cartClose {
    @include extend-click();
    position: absolute;
    right: 30rpx;
    top: 30rpx;
    image {width: 30rpx; height: 30rpx;}
  }
  .maskBottomBtn {
    position: relative;
    margin-top: 40rpx;
    width: 100%;
    height: 80rpx;
    background-color: #000;
    color: white;
    text-align: center;
    // border-radius: 40rpx;
    line-height: 80rpx;
  }
}